Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

do not treat directories like regular files in existence checks #339

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

firewave
Copy link
Collaborator

@firewave firewave commented Feb 15, 2024

std::ifstream can open directories and read from them without issue. Nothing will be read though it is like an empty file. This would have treated an include which actually pointed to a directory as existing (e.g. #include </>).

@firewave
Copy link
Collaborator Author

No tests added since we still do not have tests for additional files ... but I just realized that certain directories always exists so at least on Linux it can be tested.

Moving code is problematic though as Cppcheck is GPL and this would re-license it under 0BSD.

@firewave
Copy link
Collaborator Author

Moving code is problematic though as Cppcheck is GPL and this would re-license it under 0BSD.

@danmar

After we resolved and merged this we should create another release so we can sync it to Cppcheck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant